package com.mess.warningmess;


import org.springframework.context.ApplicationContext;

import app.schedule.SpringApplicationContextHolder;
import app.service.DeviceManageService;
import siotwx.entity.Deviceinfo;


public class MSMInfo {
	
	public static Deviceinfo getInfo(String code){
		ApplicationContext context=SpringApplicationContextHolder.context;
		
		DeviceManageService service=(DeviceManageService) context.getBean("DeviceManageService");
		
		Deviceinfo deviceInfo = service.getDeviceInfo(code);
		
		return deviceInfo;
	}
}
